import 'package:flutter/material.dart';

class NavigatorItem {
  final String title;
  final String imgUrl;
  final Function(BuildContext context) onTap;

  NavigatorItem(this.title,this.imgUrl,this.onTap);
}

List<NavigatorItem> navigatorItems = [
  NavigatorItem(
    '卡包',
    'assets/images/card.png',
    (BuildContext context) {
      Navigator.of(context).pushNamed('login');
    },
  ),
  NavigatorItem(
    '签到',
    'assets/images/clock.png',
    (BuildContext context) {
      Navigator.of(context).pushNamed('login');
    },
  ),
  NavigatorItem(
    '位置',
    'assets/images/position.png',
    (BuildContext context) {
      Navigator.of(context).pushNamed('login');
    },
  ),
  NavigatorItem(
    '优惠',
    'assets/images/promotion.png',
    (BuildContext context) {
      Navigator.of(context).pushNamed('login');
    },
  ),
];